package cn.sany.cterminal.common.constants;


/**
 *
 * @Project : forklift
 * @Package : cn.sany.forklift.common.constants
 * @Class : CommonConst
 * @Description : 常量类
 * @author : zhouxing
 * @CreateDate : 2020-07-14 17:19:06
 * @version : V0.5
 * @Copyright : 2020 sany.com Inc. All rights reserved.
 * @Reviewed :
 * @UpateLog :    Name    Date    Reason/Contents
 *             ---------------------------------------
 *                ****    ****    ****
 *
 */
public class CommonConst {
    /**
     * 结果标识 - 成功
     */
    public static final int SUCCESS_CODE = 0;
    /**
     * 结果标识 - 失败
     */
    public static final int FAIL_CODE = 1;
    /**
     * 返回成功信息描述
     */
    public static final String SUCCESS_DESC = "成功";
    /**
     * 返回失败信息描述
     */
    public static final String FAIL_DESC = "失败";
    /**
     * 缺少必传参数
     */
    public static final String LACK_PARAM = "缺少必传参数";

    public static class MqMsgType{
        /** 实时数据 **/
        public static final String REALTIME_INFO = "realtimeInfo";
        /** 故障数据 **/
        public static final String FAULT_INFO = "faultInfo";
    }


    /**
     * 平均耗电量
     */
    public static final String AVERAGE_POWER_CONSUM = "1";

    /**
     * 总耗电量
     */
    public static final String TOTAL_POWER_CONSUM = "2";

    /**
     *行驶里程
     */
    public static final String TOTAL_DISTANCE = "3";

    /**
     * 工作时长
     */
    public static final String WORK_TIME = "4";
}
